Skip to content

Promote TrayApp to a stable API; log instead of crashing on non-Tao backend#416

Merged
kdroidFilter merged 1 commit into
masterfrom
refactor/trayapp-stable-api
Jul 13, 2026
Merged

Promote TrayApp to a stable API; log instead of crashing on non-Tao backend#416
kdroidFilter merged 1 commit into
masterfrom
refactor/trayapp-stable-api

Conversation

@kdroidFilter

Copy link
Copy Markdown
Collaborator

Summary

  • Remove the ExperimentalTrayAppApi opt-in marker and drop all @OptIn/@ExperimentalTrayAppApi usages across the library, demo, and README — TrayApp, TrayAppState, rememberTrayAppState, and TrayWindowDismissMode are now stable, no consumer opt-in required.
  • Replace the hard require(backend == NucleusBackend.Tao) crash with an errorln log + early return, so a misconfigured backend degrades gracefully instead of throwing.

Test plan

  • ./gradlew compileKotlinJvm (library)
  • ./gradlew :demo:compileKotlinJvm (demo)
  • Run the demo on the Tao backend and confirm the tray popup still works

… on a non-Tao backend

- Remove the ExperimentalTrayAppApi opt-in marker and all @OptIn usages
- Replace the require(backend == Tao) crash with an error log + early return
@kdroidFilter kdroidFilter merged commit b1c502a into master Jul 13, 2026
4 checks passed
@kdroidFilter kdroidFilter deleted the refactor/trayapp-stable-api branch July 13, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant